import React from 'react'
import PropTypes from 'prop-types';

const CommonList = (props) => {
    return (
        <ul>
            {
                props.list.map(item=>{
                    return (
                        <li key={item}>{item}</li>
                    )
                })
            }
        </ul>
    )
}
CommonList.propTypes = {
    list: PropTypes.array.isRequired,
    title: PropTypes.string
}
export default CommonList